<?php /* Smarty version Smarty-3.1.8, created on 2014-08-21 22:24:45
         compiled from "C:\wamp\www\framework\auditorias\views\programa\auditar.tpl" */ ?>
<?php /*%%SmartyHeaderCode:143153caae36884a36-52342267%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '24398546167009c730b5c4a6ccc464e4b208e7b7' => 
    array (
      0 => 'C:\\wamp\\www\\framework\\auditorias\\views\\programa\\auditar.tpl',
      1 => 1408659878,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '143153caae36884a36-52342267',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_53caae368e7fb7_96142999',
  'variables' => 
  array (
    'datos' => 0,
    'gr' => 0,
    'nombre' => 0,
    'preg' => 0,
    'count' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_53caae368e7fb7_96142999')) {function content_53caae368e7fb7_96142999($_smarty_tpl) {?><?php if (!is_callable('smarty_function_counter')) include 'C:\\wamp\\www\\framework\\libs\\Smarty\\libs\\plugins\\function.counter.php';
?><?php echo smarty_function_counter(array('start'=>0,'skip'=>1,'print'=>false,'assign'=>'count'),$_smarty_tpl);?>

<form id="form1" method="post" action="">
    <input type="hidden" name="guardar" value="1" />
    <table>
        <tr class="headtr">
            <th>Clasificacion</th>
            <th colspan="2">Pregunta</th>
            <th>Observaciones</th>
        </tr>
        <?php  $_smarty_tpl->tpl_vars['gr'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['gr']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['datos']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['gr']->key => $_smarty_tpl->tpl_vars['gr']->value){
$_smarty_tpl->tpl_vars['gr']->_loop = true;
?>
            <?php $_smarty_tpl->tpl_vars['nombre'] = new Smarty_variable($_smarty_tpl->tpl_vars['gr']->value['nombre'], null, 0);?>
            <tr class="headtr">
                <th rowspan="<?php echo count($_smarty_tpl->tpl_vars['gr']->value);?>
"><u><?php echo $_smarty_tpl->tpl_vars['nombre']->value;?>
</u></th>
                <th colspan="3"></th>
            </tr>
            <?php  $_smarty_tpl->tpl_vars['preg'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['preg']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['gr']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['preg']->key => $_smarty_tpl->tpl_vars['preg']->value){
$_smarty_tpl->tpl_vars['preg']->_loop = true;
?>
            
            <?php if (isset($_smarty_tpl->tpl_vars['preg']->value['pregunta'])){?>
                <tr>
                    
                    <td class="izq">
                        <label><input name="res_<?php echo $_smarty_tpl->tpl_vars['count']->value;?>
" type="radio" value="1"/>SI</label>
                        <label><input name="res_<?php echo $_smarty_tpl->tpl_vars['count']->value;?>
" type="radio" value="0" checked="" />NO</label>
                    </td>
                    <td class="izq">
                        <input name="preg_<?php echo $_smarty_tpl->tpl_vars['count']->value;?>
" value="<?php echo $_smarty_tpl->tpl_vars['count']->value;?>
" type="hidden" />
                        <strong><?php echo $_smarty_tpl->tpl_vars['preg']->value['pregunta'];?>
</strong>
                    </td>
                    <td><textarea name="observaciones_<?php echo $_smarty_tpl->tpl_vars['count']->value;?>
" rows="5" cols="100" ></textarea></td>
                </tr>
                <?php echo smarty_function_counter(array('print'=>false),$_smarty_tpl);?>
        
            <?php }?>
            <?php } ?>
        <?php } ?>
        <tr class="headtr"><td colspan="4"><input type="submit" class="button" value="Guardar" /></td></tr>
    </table>
</form><?php }} ?>